﻿using System;
using GCTrackableRace.Interfaces;

namespace GcTrackableRace.Entities
{
	public class TrackableLog : ITrackableLog
	{
		public int LogId { get; set; }
		public string TrackableCode { get; set; }
		public string LogType { get; set; }
		public string LocationGcCode { get; set; }
		public string ByCacher { get; set; }
		public DateTime Date { get; set; }
		public double? Latitude { get; set; }
		public double? Longitude { get; set; }

		public override string ToString()
		{
			return String.Format("Date: {0}, LogType: {1}",
				Date.ToString("yyyy-MM-dd"),
				LogType);
		}
	}
}